{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load django_bootstrap5 %}
{% load ietf_filters %}
{% block title %}WG Review announcement writeup for {{ charter.chartered_group.acronym }}{% endblock %}
{% block content %}
    {% origin %}
    <h1>
        WG Review announcement writeup
        <br>
        <small class="text-body-secondary">{{ charter.chartered_group.acronym }}</small>
    </h1>
    <form class="mt-3" method="post">
        {% csrf_token %}
        {% bootstrap_form announcement_text_form %}
        <button type="submit" class="btn btn-primary" name="save_text" value="Save">Submit</button>
        <button type="submit" class="btn btn-warning" name="regenerate_text" value="Regenerate">Regenerate
        </button>
        {% if user|has_role:"Secretariat" %}
            <button type="submit"
                   class="btn btn-primary"
                   name="send_annc_only">
                   Send only to IETF-Announce
            </button>
            <button type="submit"
                   class="btn btn-primary"
                   name="send_nw_only">
                   Send only to New-Work
            </button>
            <button type="submit"
                   class="btn btn-primary"
                   name="send_both">
                   Send to both
            </button>
        {% endif %}
        <a class="btn btn-secondary float-end" href="{{ back_url }}">Back</a>
    </form>
{% endblock %}